package com.itheima.job5;

import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        Student stu1 = new Student("张三",20,"男");
        Student stu2 = new Student("李四",21,"女");
        Student stu3 = new Student("张三",20,"男");
        HashSet<Student> students = new HashSet<>();
        students.add(stu1);
        students.add(stu2);
        students.add(stu3);

        students.forEach(student -> System.out.println(student));
    }
}
